code n. 1.法典;法规。 2.规则,准则;(社会、阶级等的)惯例,习俗,制度。 3.(电)码,代码,密码,暗码;代号,略号,暗号。 4.【生物学】遗传(密)码。 the civil [criminal] code民[刑]法典。 the moral code道德准则。 code of signals 信号密码(本)。 code of the school 校规。 code and conventions 规章制度。 C- Napoléon 拿破仑法典。 C- of Hammurabi (古代巴比伦的)汉穆拉比法典。 code of honour 社会礼法;决斗惯例。 code of written law 成文法典。 the International Code 国际电码。 the Morse code 摩尔斯电码。 vt. 1.把…编成法典[法规]。 2.把…译成[编成]电码;编(码);译(码)。 n. -r 【自动化】编码装置;【电讯】记发器。
But often the boilerplate code isn t so pretty 但是通常来说,这些样板代码并不会如此精美。
Traditionally, supporting jmx involves implementing patterns with boilerplate code 传统上,支持jmx包括用样本代码实现模式。
Programs that have a lot of boilerplate code that cannot be abstracted into functions 有大量样板文件的程序,但是无法抽象成函数
This means that boilerplate code is one of the few places where non-hygienic macros are useful 这意味着样板代码是适合使用非健康宏的少数几种情况之一。
Have a naming convention which clearly labels macros as such, as well as indicate that a variable came from boilerplate code 为宏建立明确的命名约定,并指出来自样板代码的变量。
It s best to think of this as boilerplate code : simply copy it into your javascript library and use it when you need an 最好是把它当作辅助程式码:只要把它拷贝到javascript库,并在需要
Leaving aside the boilerplate code, we had to add only 9 lines of code to our hello, world program to achieve this 除了样板文件代码,我们只需向hello,world程序添加9行代码就可做到这一点。
In such cases, it is often a good idea to create a mini-language that allows you to work with your boilerplate code in an easier fashion 在这种情况中,通常创建一个小型的语言来更简单地利用样板文件的代码。
This lets us splice the expression into our bit of boilerplate code, then the whole shebang is converted back into a syntax object as the final transformation 这使我们能够将表达式拼接到样板代码的位中,然后将产生的整个表达式转换为语法对象。
Metaprogramming-programming with code generators or writing programs that themselves write code-has numerous useful attributes, such as simplifying code maintenance and making it easier to craft boilerplate code 元编程编写代码生成器或编写本身编写代码的程序有许多有用的属性,比如简化代码维护以及制作样板代码。